package com.lion.ball.modules.orderfood.web.model.params.order;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @author Chris Chan
 * Create on 2025-10-18 13:33
 * Use for: 评论 数据排序请求参数
 * Explain:
 * 所有字段取值规则：-1 降序，0 不排序，1 升序
 */
@Schema(description = "评论 排序参数")
public class OfdCommentOrderParam {
    @Schema(description = "主键", example = "1")
    private int id;
    @Schema(description = "编码", example = "1")
    private int code;
    @Schema(description = "父评论编码", example = "1")
    private int parentCode;
    @Schema(description = "订单编码", example = "1")
    private int orderCode;
    @Schema(description = "客户编码", example = "1")
    private int customerCode;
    @Schema(description = "评论内容", example = "1")
    private int content;
    @Schema(description = "创建时间", example = "1")
    private int createTime;
    @Schema(description = "更新时间", example = "1")
    private int updateTime;
    @Schema(description = "是否删除", example = "1")
    private int isDeleted;

    // 无参构造方法
    public OfdCommentOrderParam() {
    }

    // 全参数构造方法
    public OfdCommentOrderParam(int id, int code, int parentCode, int orderCode, int customerCode, int content, int createTime, int updateTime, int isDeleted) {
        this.id = id;
        this.code = code;
        this.parentCode = parentCode;
        this.orderCode = orderCode;
        this.customerCode = customerCode;
        this.content = content;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.isDeleted = isDeleted;
    }

    // 全参数create生成器
    public static OfdCommentOrderParam create(int id, int code, int parentCode, int orderCode, int customerCode, int content, int createTime, int updateTime, int isDeleted) {
        return new OfdCommentOrderParam(id, code, parentCode, orderCode, customerCode, content, createTime, updateTime, isDeleted);
    }

    // 全参数of生成器
    public static OfdCommentOrderParam of(int id, int code, int parentCode, int orderCode, int customerCode, int content, int createTime, int updateTime, int isDeleted) {
        return new OfdCommentOrderParam(id, code, parentCode, orderCode, customerCode, content, createTime, updateTime, isDeleted);
    }
    // region Getter和Setter方法
    public int getId() {
        return id;
    }

    public OfdCommentOrderParam setId(int id) {
        this.id = id;
        return this;
    }

    public int getCode() {
        return code;
    }

    public OfdCommentOrderParam setCode(int code) {
        this.code = code;
        return this;
    }

    public int getParentCode() {
        return parentCode;
    }

    public OfdCommentOrderParam setParentCode(int parentCode) {
        this.parentCode = parentCode;
        return this;
    }

    public int getOrderCode() {
        return orderCode;
    }

    public OfdCommentOrderParam setOrderCode(int orderCode) {
        this.orderCode = orderCode;
        return this;
    }

    public int getCustomerCode() {
        return customerCode;
    }

    public OfdCommentOrderParam setCustomerCode(int customerCode) {
        this.customerCode = customerCode;
        return this;
    }

    public int getContent() {
        return content;
    }

    public OfdCommentOrderParam setContent(int content) {
        this.content = content;
        return this;
    }

    public int getCreateTime() {
        return createTime;
    }

    public OfdCommentOrderParam setCreateTime(int createTime) {
        this.createTime = createTime;
        return this;
    }

    public int getUpdateTime() {
        return updateTime;
    }

    public OfdCommentOrderParam setUpdateTime(int updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public int getIsDeleted() {
        return isDeleted;
    }

    public OfdCommentOrderParam setIsDeleted(int isDeleted) {
        this.isDeleted = isDeleted;
        return this;
    }

    // endregion Getter和Setter方法
}
